package com.ssy.lingxi.purchase.api.enums.purchase;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 *  采购询价-物料添加模式
 * @author ds
 * @date 2021/7/5
 * @version 2.0.0
 */
public enum PurchaseInquiryMaterielModeEnum {
    SELECT_GOODS(1, "选择货品生成"),
    IMPORT_EXCEL(2, "导入货品生成"),
    PLATFORM_ATTRIBUTE(3, "通过平台属性生成"),
    ;

    private Integer type;
    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.type);
    }

    public void setName(String name) {
        this.name = name;
    }

    PurchaseInquiryMaterielModeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
